gstmediafile: Correctly report unknown duration
authorIvan Molodetskikh <yalterz@gmail.com>
Sat, 4 Dec 2021 08:48:30 +0000 (11:48 +0300)
committerIvan Molodetskikh <yalterz@gmail.com>
Sat, 4 Dec 2021 08:48:30 +0000 (11:48 +0300)
commit604541863c711b14177c0fac1f41cb79adc43b13
treedf8b7e4d50740369cbda5e771fedc44b4f52ab71
parentbe949496acb9941974ba823e945a2fe299383816
gstmediafile: Correctly report unknown duration

When loading .mp3 files the duration is initially unknown. Before this
change it was reported as a large integer (since GST_CLOCK_TIME_NONE is
-1). Now it's correctly reported as 0.
modules/media/gtkgstmediafile.c